﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BonsaiScrum.Core.Query.ProjectReport>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Project Status - <%=Html.Encode(Model.Name) %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Project Status</h2>

    <fieldset>
        <legend>Project - <%= Html.Encode(Model.Name) %></legend>
             
        <div class="display-label">Name</div>
        <div class="display-field"><%= Html.Encode(Model.Name) %></div>
        
        <div class="display-label">Description</div>
        <div class="display-field"><%= Html.Encode(Model.Description) %></div>
        
        <div class="display-label">Status</div>
        <div class="display-field"><%= Html.Encode(Model.Status.Name) %></div>
        
        <%= Html.LabelFor(x => x.PercentComplete) %>
        <%= Html.DisplayFor(x => x.PercentComplete) %>
        
        <p><%= Html.ActionLink("Add Story To Project", "Create", "Story", new { projectId = Model.Id }, null) %></p>
        <p><%= Html.ActionLink("View Stories", "List", "Story", new { projectId = Model.Id }, null) %></p>
        <div><%= Html.ActionLink("View Sprints for Project", "Index", "Sprint", new { projectId = Model.Id }, null) %></div>
    </fieldset>
    
    <% using (Html.BeginForm("Drop", "Project")) { %>
        <p><input type="submit" value="Drop Project" /></p>
        <%= Html.HiddenFor(x => x.Id) %>
    <% } %>
    
    <p>
        <%= Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

